import Vue from 'vue'
import App from './App.vue'
import CreateStore from './store/store.js'
import Createrouter from './config/router'
import './assets/styles/global.scss'

Vue.config.productionTip = false
const router = Createrouter();
const store = CreateStore();
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
router.beforeEach((to, from, next) => {
  //ifuesename = 'whh' 跳转到路由
  next();
});